<div class="signin" ng-controller="signin">
    <section>
        <h1>welcome my blog</h1>
        <div id="message" class="errorbox" ng-show="word">{{word}}</div>
        <div class="form">
            <form name="form" ng-submit="signin()" novalidate>
                <input type="text" name="name" ng-change="change()" ng-click="errorBye()" ng-model="formData.name" required autofocus placeholder="请输入用户名">
                <i class="icon-ok-sign" ng-show="form.name.$valid && form.name.$dirty"></i>
                <i class="icon-remove-sign" ng-show="form.name.$invalid && form.name.$dirty" title="用户名不能超过8个字符"></i>
                <br>
                <input type="password" name="password" ng-pattern="/(?!^\\d+$)(?!^[a-zA-Z]+$)(?!^[_#@]+$).{5,}/" ng-maxlength="12" ng-click="errorBye()" ng-model="formData.password" required placeholder="请输入密码">
                <i class="icon-ok-sign" ng-show="form.password.$valid && form.password.$dirty"></i>
                <i class="icon-remove-sign" ng-show="form.password.$invalid && form.password.$dirty" title="6-12位，只能包含字母、数字和下划线"></i>
                <br>
                <input type="password" name="password" ng-pattern="/(?!^\\d+$)(?!^[a-zA-Z]+$)(?!^[_#@]+$).{5,}/" ng-maxlength="12" ng-click="errorBye()" ng-model="formData.passwordRepeat" required placeholder="请再次输入密码">
                <i class="icon-ok-sign" ng-show="form.password.$valid && form.password.$dirty"></i>
                <i class="icon-remove-sign" ng-show="form.password.$invalid && form.password.$dirty" title="6-12位，只能包含字母、数字和下划线"></i>
                <br>
                <input type="email" ng-click="errorBye()" ng-pattern="/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/" ng-model="formData.email" required placeholder="请输入邮箱" name="email">
                <i class="icon-ok-sign" ng-show="form.email.$valid && form.email.$dirty"></i>
                <i class="icon-remove-sign" ng-show="form.email.$invalid && form.email.$dirty" title="电子邮箱格式不正确"></i>

                <br>
                <input type="submit" ng-disabled="form.$invalid" value="注册" id="res"><br>
            </form>
            <a ui-sref="login">已有账号登录</a>
        </div>
    </section>
</div>